<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
    String link = request.getParameter("content");

    if (link == null) {
        link = "customer";
    }

    //Add extension of file
    link += ".jsp";

%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link type="text/css" href="css/main.css" rel="stylesheet">
        <script type="text/javascript" src="js/jquery.js"></script>
        <script type="text/javascript">
            $(document).ready(function() {
                $("#attention").click(function() {
                    $(this).slideUp(200);
                    $("#attention-text").text("");
                });
            });
        </script>  

        <title>Alpha telecom</title>
    </head>
    <body>
        <div id="admin-blue-line"></div>
        <div id="header"></div>
        <div id="container">
            <%@include file="header.html" %>

            <div class="adminmenu">
                <a href="index.jsp?content=customer">Customer</a>
                <a href="index.jsp?content=order&product">Product</a>
                <a href="index.jsp?content=report">Report</a>
            </div>
            <div id="content">
                <jsp:include page="<%= link%>" flush="true"/>
            </div>
        </div>
        <div id="attention" title="Click to close">
            <div class="float_left">
                <img src="images/attention.jpg" width="100px"/>
            </div>
            <div style="display: inline-block;">
                <h2>Attention!</h2>
                <ul id="attention-text">
                </ul>
            </div>
        </div>
    </body>
</html>
